package org.hzero.order.app.service;

import com.fasterxml.jackson.databind.jsonFormatVisitors.JsonObjectFormatVisitor;
import com.fasterxml.jackson.databind.util.JSONPObject;
import jdk.nashorn.internal.parser.JSONParser;
import net.sf.json.JSONObject;
import org.hzero.boot.imported.app.service.IDoImportService;
import org.hzero.core.util.JsonUtils;
import org.hzero.order.domain.repository.SoHeaderRepository;
import org.hzero.order.domain.repository.SoLineRepository;
import org.hzero.order.infra.mapper.CompanyMapper;
import org.hzero.order.infra.mapper.CustomerMapper;
import org.hzero.order.infra.mapper.ItemMapper;
import org.hzero.order.infra.mapper.SoHeaderMapper;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.http.HttpServletRequest;


/**
 * @ Description   :  导入订单
 * @ Author        :  xiong.yilin@hand-china.com
 * @ CreateDate    :  2019/8/8 10:31
 */
public class ImportOrder implements IDoImportService {
    @Autowired
    private HttpServletRequest httpServletRequest;
    @Autowired
    private SoHeaderRepository soHeaderRepository;
    @Autowired
    private SoLineRepository soLineRepository;
    @Autowired
    private CompanyMapper companyMapper;
    @Autowired
    private CustomerMapper customerMapper;
    @Autowired
    private ItemMapper itemMapper;
    @Autowired
    private SoHeaderMapper soHeaderMapper;
    @Override
    public Boolean doImport(String data) {
        JSONObject jsonObject = JSONObject.fromObject(data);
        return null;
    }
}
